package com.huatai.manage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.huatai.manage.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 试验对象关联;
 * </p>
 *
 * @author luoxc
 * @since 2023-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_info_subject")
@ApiModel(value = "TbInfoSubject对象", description = "试验对象关联;")
public class TbInfoSubjectEntity extends BaseEntity {

	@ApiModelProperty(value = "主键id,(根据该id删除)")
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty(value = "关联id")
	private String infoSubjectId;

	@ApiModelProperty(value = "试验id")
	@NotBlank(message = "试验id不能为空！")
	private String trialId;

	@ApiModelProperty(value = "对象id")
	@NotBlank(message = "对象id不能为空！")
	private String subjectId;

	@ApiModelProperty(value = "试验名称")
	@TableField(exist = false)
	private String trialName;

	@ApiModelProperty(value = "对象名称")
	@TableField(exist = false)
	private String subjectName;

	@ApiModelProperty(value = "试验类型")
	@TableField(exist = false)
	private String trialType;

	@ApiModelProperty(value = "状态")
	private String state;


}
